<template>
    <div>
        <h1 v-if="msg">用户管理</h1>
        <h2>{{msg}}</h2>
    </div>
</template>

<script>
    import {vip} from "@/api/user";

    export default {
        name: "index",
        data() {
            return {
                msg: ''
            }
        },
        created(){
            this.initData()
        },
        methods: {
            initData(){
                vip().then(res => {
                    if (res.status == 200){
                        this.msg = res.data.msg
                    }
                })
            }
        }
    }
</script>

<style scoped>

</style>